package com.xiaotu.service.impl;

import com.xiaotu.mapper.UserAgreementMapper;
import com.xiaotu.service.UserAgreementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

/**
 * @author zhangxiao
 * @create 2022-03-11 10:45
 */
@Service
public class UserAgreementServiceImpl implements UserAgreementService {

    @Autowired
    private UserAgreementMapper userAgreementMapper;

    @Override
    public String getUserAgreement(Integer type) {
        return userAgreementMapper.selectByPrimaryKey(type).getUserAgreement();
    }
}
